package com.xixi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xixi.entity.Order;
import com.xixi.pojo.query.OrderQueryPage;
import com.xixi.pojo.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    IPage<OrderVO> page(IPage<OrderVO> page, OrderQueryPage queryPage);

    OrderVO orderById(Integer id);

    List<OrderVO> orderListById(Integer id);

    Integer pay(List<Integer> ids);

    Integer receive(List<Integer> ids);
}
